from typing import List, Optional
from pydantic import BaseModel
from typing_extensions import Any


class JWTIdendity(BaseModel):
    phone_num: str
    emp_number: Optional[str]
    username: str
    department: Optional[str]
    position: Optional[str]
    is_admin: Optional[bool]


class RespResult(BaseModel):
    code: int
    success: bool
    data: Any
    message: str


class RulePath(BaseModel):
    rule: str
    endpoint: str
    methods: List[str]
    description: Optional[str]
